package com.smart.manager.weixin.mp.entities.bodys;

import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.weixin.mp.entities.enums.WeixinMpAccountType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * rsystem模型
 *
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RWeixnMpAccount {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RMemberRank1")
    public static class SearchBody extends BaseSearch {


        @ApiModelProperty("公众号类型")
        private WeixinMpAccountType type;


        @ApiModelProperty("公众号名称")
        private String name;

        @ApiModelProperty(value = "公众号appid")
        private String appId;


    }


    @Data
    @ApiModel("RMemberRank2")
    public static class EditBody implements Serializable {

        @ApiModelProperty("公众号名称")
        @Length(max = 30, message = "公众号名称 不能超过30个字符")
        @NotBlank(message = " 公众号名称  不能为空")
        private String name;

        @ApiModelProperty("公众号类型")
        @NotNull(message = " 公众号类型  不能为空")
        private WeixinMpAccountType type;


        @ApiModelProperty(value = "公众号appid")
        @Length(max = 30, message = "公众号appid 不能超过30个字符")
        @NotBlank(message = " 公众号appid  不能为空")
        private String appId;


        @ApiModelProperty(value = "公众号秘钥")
        @Length(max = 50, message = "公众号appid 不能超过50个字符")
        @NotBlank(message = " 公众号appid  不能为空")
        private String secret;


        @ApiModelProperty(value = "通知Token")
        @Length(max = 50, message = "通知Token 不能超过50个字符")
        @NotBlank(message = " 通知Token  不能为空")
        private String token;


        @ApiModelProperty(value = "AES加密盐")
        @Length(max = 50, message = "AES 不能超过50个字符")
        @NotBlank(message = " AES  不能为空")
        private String aesKey;


        @ApiModelProperty(value = "公众号二维码")

        @NotBlank(message = "公众号 默认二维码 不能为空")
        private String qrPhoto;


        @ApiModelProperty(value = "客服二维码")
        @NotBlank(message = "公众号 客服二维码不能为空")
        private String kfPhoto;

    }


}
